import Layout from '@/layout/index.vue'

const hospitalRouter = [{
  path: '/hospital',
  component: Layout,
  redirect: '/hospital/list',
  name: 'hospital',
  meta: {
    title: '医院管理',
    icon: 'chat-square'
  },
  children: [
    {
      path: '/hospital/list',
      component: () => import('@/views/hospital/list/index.vue'),
      name: 'hospitalList',
      meta: { title: '医院列表', icon: 'chat-square' }
    },
    {
      path: '/hospital/dept',
      component: () => import('@/views/hospital/dept/index.vue'),
      name: 'hospitalDept',
      meta: { title: '科室列表', icon: 'chat-square' }
    },
    {
      path: '/hospital/room',
      component: () => import('@/views/hospital/room/index.vue'),
      name: 'hospitalRoom',
      meta: { title: '房间列表', icon: 'chat-square' }
    },
    {
      path: '/hospital/staff',
      component: () => import('@/views/hospital/staff/index.vue'),
      name: 'hospitalStaff',
      meta: { title: '科室人员', icon: 'chat-square' }
    },
    {
      path: '/hospital/person',
      component: () => import('@/views/hospital/person/index.vue'),
      name: 'hospitalPerson',
      meta: { title: '房间人员', icon: 'chat-square' }
    }
  ]
},]

export default hospitalRouter
